package com.eight.travel.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.eight.travel.dao.PromessionMapper;
import com.eight.travel.pojo.Promession;
import com.eight.travel.service.PromessionService;
import com.eight.travel.utils.BaseResp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author Q小旭
 * @version 1.0
 */
@Service
public class PromessionServiceImpl extends ServiceImpl<PromessionMapper, Promession> implements PromessionService {

    @Resource
    PromessionMapper promessionMapper;
    @Override
    public List<Promession> findByName(String name) {
        return promessionMapper.selectByName(name);
    }
}
